[TOMCAT/JSF] <servlet-mapping> VS DEFAULT_SUFFIX

Hello guys,

I am currently bulding a Tomcat Server working with JSF.

I am trying to understand the difference between <servlet-mapping>
and <context-param> <param-name>javax.faces.DEFAULT_SUFFIX.

Using;
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

I guess any file.faces will be interpreted as a JSF file.

I thought it was enough, but often I find in some examples:
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

Why could we need this parameter ?

Thank you for helping :)

Happy new year !

Alain
alain.habra [ So, 30 Dezember 2007 22:44 ] [ ID #1896179 ]
Webserver » alt.apache.configuration » [TOMCAT/JSF] <servlet-mapping> VS DEFAULT_SUFFIX

Vorheriges Thema: php_value session.cookie_domain on different port is not working
Nächstes Thema: Can't view php